﻿@model Stardust.Models.ProveedorBean

@{
    ViewBag.Title = "Detalle del Proveedor";
}

<h2>Proveedor</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

    
@using (Html.BeginForm("DetallesProveedor", "Proveedor", FormMethod.Post, new { @class = "form" }))
{
   @Html.ValidationSummary(false)
    
    <fieldset>
        <div class="widget">
            <div class="title">
                <h6>Detalle del Proveedor</h6>
            </div>
            <div class="formRow"> @Html.LabelFor(model => model.razonSocial)<span class="req">*</span>
                <div class=" formRight"> @Html.DisplayFor(model => model.razonSocial)  </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.ruc)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.ruc) </div>
                <div class="clear"></div>
            </div>

            <div class="formRow">@Html.LabelFor(model => model.direccion)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.direccion) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.telefono)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.telefono) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.web)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.web) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.contacto)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.contacto) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.cargoContacto)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.cargoContacto) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.telefonocontacto)
                <div class="formRight"> @Html.DisplayFor(model => model.telefonocontacto, new { @class = "validate[custom[onlyNumberSp]]", name = "numsValid", maxlength = "9", minlength = "8", placeholder = "celular" }) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.emailContacto)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.emailContacto) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.observaciones)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.observaciones) </div>
                <div class="clear"></div>
            </div> 
            <div class="formRow">@Html.LabelFor(model => model.estado2)<span class="req">*</span>
                <div class="formRight"> @Html.DisplayFor(model => model.estado2) </div>
                <div class="clear"></div>
            </div>            
            
        </div>
    </fieldset>
        <p>
        <a href="@Url.Action("ModificarProveedor", new { id = Model.ID })"><img src="../../Content/images/icons/color/pencil.png", alt="Edit" />Editar</a> | 
        @Html.ActionLink("Regresar", "Buscar")
    </p>
    
}
       